package com.otitan.la.forest.system.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
* 用户修改DTO
* @author Sunke
* @param
* @return
* @exception
* @date 2020/9/27 0027 15:32
*/
@Data
@ApiModel("用户修改DTO")
public class UserResetDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名", required = false)
    @NotEmpty(message = "用户名不能为空")
    private String userName;

    /**
     *  新密码
     */
    @ApiModelProperty(value = "新密码", required = false)
    @NotEmpty(message = "新密码不能为空")
    private String newPassword;

    /**
     *  旧密码
     */
    @ApiModelProperty(value = "旧密码", required = false)
    @NotEmpty(message = "旧密码不能为空")
    private String oldPassword;
}
